package com.nulldev.util.web.HttpServer3.extensions.websocket.frame.messages;

import com.nulldev.util.web.HttpServer3.extensions.websocket.exceptions.InvalidMessageException;
import com.nulldev.util.web.HttpServer3.extensions.websocket.frame.message.Message;
import com.nulldev.util.web.HttpServer3.extensions.websocket.frame.message.MessageWriter;

public class TextMessageWriter implements MessageWriter {
	@Override
	public void write(Message<?> message) {
		if (message == null || !(message instanceof TextMessage))
			throw new InvalidMessageException();
	}
}